<template>
  <div class="singers">
      <div>
          <div class="header">
          <div class="header-title">华语男歌手</div>
      </div>
      <ul class="zimu"  >
          <li v-for="k,index in zimu" :key="index" :class="{active:isActive===index}" @click="changActive(index)">{{ k }}</li>
      </ul>
      <div class="body">
          <ul class="body-ul hot">
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li>
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li class="hahaha">
                  <div class="div_img">
                      <a href="" class="a_img">
                          <img src="" alt="">
                      </a>
                  </div>
                  <div class="div_name">
                      <span class="singer_name">张惠妹</span>
                      <i class="el-icon-user-solid"></i>
                  </div>
              </li>
              <li class="sml line">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
              <li class="sml line">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
              <li class="sml line">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
              <li class="sml line">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
              <li class="sml line">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
              <li class="sml">
                  <span>李荣浩</span>
                  <i class="el-icon-user-solid"></i>
              </li>
          </ul>
      </div>
      </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      isActive: 0,
      zimu: ['热门', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'M', 'L', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '其他']
    }
  },
  methods: {
    changActive (index) {
      this.isActive = index
    }
  }

}
</script>

<style lang="less" scoped>
.active{
    background-color: #c20c0c;
    color: #fff!important;
    border-radius: 4px;
}
.singers {
    .header {
         height: 40px;
          padding: 0;
          border-bottom: 2px solid #c20c0c;
          .header-title {
              float: left;
              font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
            font-size: 24px;
            font-weight: normal;
          }
          .more {
            float: right;
            padding-top: 10px;
            &:hover {
            cursor: pointer;
            color: #c20c0c;
            text-decoration: underline;
            }
          }
    }
    .zimu {
        height: 24px;
        margin-top: 20px;
        // background-color: aquamarine;
        li {
            float: left;
            font-size: 14px;
            color: #333;
            line-height: 24px;
            text-align: center;
            padding: 0 7px;
            &:hover {
                cursor: pointer;
                text-decoration: underline;
            }

        }
    }
    .body {
        position: relative;
        width: 100%;
        padding-top: 20px;
        ul {
            // display: flex;
            width: 720px;
            height: 368px;
            list-style:none;
            li {
                float: left;
                width: 130px;
                height: 184px;margin-right: 17px;
                span:hover {
                    cursor: pointer;
                    text-decoration: underline;
                }
                &:nth-child(5n) {
                    margin: 0;
                }
                .div_img {
                    .a_img {
                        display: block;
                        width: 100%;
                        height: 130px;
                        img {
                            width: 100%;
                            height: 130px;
                            background-color: #fff;
                        }
                    }
                }
                .div_name {
                    width: 130px;
                    padding-top: 8px;
                    .singer_name {
                        float: left;
                        font-size: 12px;
                    }
                    .el-icon-user-solid {
                        float: right;
                        color: #c20c0c;
                        &:hover {
                            cursor: pointer;
                        }
                    }
                }
            }
            .hahaha {
                margin-bottom: 12px!important;
            }
            .sml {
                height: 30px;
                width: 144px;
                margin-right: 0;
                // border-top: 1px dotted #999;
                span {
                    font-size: 12px;
                }
                .el-icon-user-solid {
                margin-left: 5px;
                color: #c20c0c;
                &:hover {
                     cursor: pointer;
                }
            }
            }
        }
        .hot {
            height: 920px;
            &::after {
                display: block;
                content: ' ';
                position: relative;
                top: 365px;
                left: 0;
                height: 1px;
                width: 720px;
                border-bottom: 1px dotted #999;
            }
        }
    }
}
</style>
